"""
第3周Python程序设计语言示例：布尔表达式

2021-03-17
"""

a = 10
print(a == 10) # True
print(a != 10) # False

a = 12.34
print(a == 12.34) # True
print(a != 12.34) # False

str_1 = "Hello"
str_2 = "Hello"
print(str_1 == str_2) # False
print(str_1 != str_2) # True

list_a = [1,2,3]
list_b = [3,2,1]

# 只有每个对应索引的值完全相等才是相等
print(list_a == list_b) # False
print(list_a != list_b) # True

dict_a={"x":10,"y":20}
dict_b={"y":20,"x":10}
print(dict_a == dict_b) # True
print(dict_a != dict_b) # False

set_a={1,1,2,2,3,3} # {1,2,3}
set_b={3,2,1,1,2,3} # {2,3,1}
print(set_a == set_b) # True
print(set_a != set_b) # False
